package com.cloudbroker.bcs.common.constants.status;

public enum ActiveStatus {
    
    ACTIVE(0, "可用"),
    
    INACTIVE(1, "不可用"),
    
    ;
    
    private final int val;
    
    private final String description;
    
    private String toString;
    
    private ActiveStatus(int val, String description) {
        this.val = val;
        this.description = description;
    }
    
    public int getVal() {
        return val;
    }
    
    public String getDescription() {
        return description;
    }
    
    @Override
    public String toString() {
        if (null == toString) {
            toString = new StringBuilder().append("ActiveStatus[").append(val).append(':').append(description)
                    .append(']').toString();
        }
        return toString;
    }
    
}
